﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户注册</title>

    <script language="javascript">
    function BodyOnLoad()
    {
        if (window != top)
        {
           window.resizeTo(window.document.body.scrollWidth, window.document.body.scrollHeight);
        }
    }
    
    function MyJsFunc() {
            var userName = $get('<%= Txb_Email.ClientID %>').value;
            PageMethods.MyMethod(userName, OnSuccess);
        }
        function OnSuccess(result) {            
           $get('<%= Lbl_Show.ClientID %>').innerText = result=="false" ? "该邮箱已注册!" : "";  
        }

    </script>

    <style type="text/css">
        .style1
        {
            height: 29px;
        }
        .style3
        {
            text-align: left;
            width: 128px;
        }
        
    </style>
</head>
<body onload="BodyOnLoad();">
        <form id="form1" runat="server">
    <h2 style="text-align: center">
        用户注册</h1>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>
        <div align="center">
            <asp:Panel ID="Panel1" runat="server" BorderStyle="Groove" Height="180px" Style="text-align: center"
                Width="810px">
                <table width="800px">
                    <tr>
                        <td rowspan="4" width="150px">
                            选择会员类型
                        </td>
                        <td width="120px">
                            <asp:RadioButton ID="Rbtn_Ent" runat="server" GroupName="Kind" Text="公司" />
                        </td>
                        <td width="120px" align="right">
                            登录邮箱：
                        </td>
                        <td>
                            <asp:TextBox ID="Txb_Email" runat="server" Width="150px"></asp:TextBox>
                            <strong><font color="red">*</font></strong>
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Txb_Email"
                                ValidationExpression="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"
                                Display="Static" Font-Name="verdana" Font-Size="10pt"> 
                            请输入有效的E-mail地址! 
                            </asp:RegularExpressionValidator>
                        </td>
                    </tr>
                     <tr>
                        <td>
                            <asp:RadioButton ID="Rbtn_Org" runat="server" GroupName="Kind" Text="组织" />
                        </td>
                        <td width="120px" align="right">
                            密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：
                        </td>
                        <td>
                            
                            <asp:TextBox ID="Txb_Pwd" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                           <strong><font color="red">*</font></strong>
                        </td>
                        <td>
                        </td>
                    </tr>
                    
                    <tr>
                        <td>
                            <asp:RadioButton ID="Rbtn_Shop" runat="server" GroupName="Kind" Text="商铺" />
                        </td>
                        <td width="120px" align="right">
                            确认密码：
                        </td>
                        <td>
                           
                            <asp:TextBox ID="Txb_Pwd2" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                            <strong><font color="red">*</font></strong>
                            
                        </td>
                        <td>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToCompare="Txb_Pwd" ControlToValidate="Txb_Pwd2" ErrorMessage="两次密码不一致!" 
                                Font-Name="verdana" Font-Size="10pt">
                            </asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="Rbtn_Persion" runat="server" GroupName="Kind" Text="个人" Checked="true" />
                        </td>
                        <td width="100px" align="right">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <table width="800px" height="30px">
                    <tr>
                        <td>
                            <asp:Label ID="Lbl_Show" runat="server" Font-Name="verdana" Font-Size="10pt" 
                                ForeColor="Red" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr align="center">
                        <td class="style1">
                            <asp:Button ID="Btn_FirNext" runat="server" Text="下一步" onclick="Btn_FirNext_Click" 
                                 />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server" BorderStyle="Groove" Height="180px" Style="text-align: center"
                Width="810px">
                
                <div id="div_Location" runat="server">
                
                    <table width="800px">
                    <tr>
                        <td width="150px">
                            &nbsp;<asp:Label ID="Label1" runat="server" Text="选择所在城市："></asp:Label>
                        </td>
                        <td  width="200px">
                            <asp:DropDownList ID="DDL_Province" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Province_SelectedIndexChanged"
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_City" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_City_SelectedIndexChanged"
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_Distict" runat="server" AutoPostBack="True" 
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    </table>
                </div>
                
                   <div id="div_Type" runat="server">
                
                    <table width="800px">
                    <tr>
                        <td width="150px">
                            &nbsp;<asp:Label ID="Label2" runat="server" Text="选择所属行业："></asp:Label>
                        </td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_Type" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Type_SelectedIndexChanged"
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_SType" runat="server" AutoPostBack="True" 
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="200px">
                        </td>
                    </tr>
                    </table>
                    </div>
                    
                    <div id="div_Org" runat="server">
                
                    <table width="800px">
                    
                     <tr>
                        <td width="150px">
                            &nbsp;<asp:Label ID="Label3" runat="server" Text="选择所属组织："></asp:Label>
                        </td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_Org" runat="server" AutoPostBack="True" 
                                Width="100px" AppendDataBoundItems="True">
                                <asp:ListItem>请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="200px">
                            &nbsp;</td>
                        <td width="200px">
                            
                        </td>
                    </tr>
                    </table>
                    </div>
                    
                    <div id="div_ShopAttr" runat="server">
                
                    <table width="800px">
                     <tr>
                        <td width="150px">
                            &nbsp;<asp:Label ID="Label4" runat="server" Text="选择商铺规模："></asp:Label></td>
                        <td width="200px">
                            <asp:DropDownList ID="DDL_ShopAttr" runat="server" AutoPostBack="True" 
                                    Width="100px" AppendDataBoundItems="True">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td width="200px">
                                &nbsp;</td>
                            <td width="200px">
                                
                            </td>
                        </tr>
                    </table>
                  </div>
                
                <table width="800px" height="30px">
                    <tr>
                        <td>
                        </td>
                    </tr>
                    <tr align="center">
                        <td class="style1">
                            <asp:Button ID="Btn_SecNext" runat="server" Text="下一步" onclick="Btn_SecNext_Click" 
                                />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel3" runat="server" BorderStyle="Groove" Height="450px" Style="text-align: center"
                Width="810px">
                <table width="800px">
                    <tr>
                        <td width="100px" >
                            账号：
                        </td>
                        <td class="style3" >
                        <asp:Label ID="Lbl_No" runat="server"></asp:Label>
                        </td>
                        <td width="100px" align="right" >
                            全称：
                        </td>
                        <td class="style3" >
                            <asp:TextBox ID="Txb_FullName" runat="server"></asp:TextBox>
                        </td>
                        
                        <td>
              
                            </td>
                    </tr>
                    <tr>
                       
                        <td width="100px" >
                            简称：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_NickName" runat="server"></asp:TextBox>
                        </td>
                        
                        <td width="100px" align="right">
                            电话：
                        </td>
                        <td class="style3" >
                            <asp:TextBox ID="Txb_Phone" runat="server"></asp:TextBox>
                        </td>
                        
                        <td>
                        </td>
                    </tr>
                    
                     <tr>
                        
                        <td  width="100px" >
                            手机：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_Mobile" runat="server"></asp:TextBox>
                        </td>
                        <td  width="100px" align="right">
                            QQ：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_QQ" runat="server"></asp:TextBox>
                        </td>
                        
                        <td>
                        </td>
                    </tr>
                    
                    
                      <tr>
                        
                        <td  width="100px" >
                            MSN：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_MSN" runat="server"></asp:TextBox>
                        </td>
                        <td  width="100px" align="right">
                            FAX：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_FAX" runat="server"></asp:TextBox>
                        </td>
                        
                        <td>
                        </td>
                    </tr>
                   
                    <tr>
                        <td width="100px">
                            关键字：
                        </td>
                        <td colspan="3"  width="300px" align="left" >
                            <asp:TextBox ID="Txb_KeyWord1" runat="server" width="80px"  ></asp:TextBox>
                       
                            <asp:TextBox ID="Txb_KeyWord2" runat="server" width="80px" ></asp:TextBox>
                       
                            <asp:TextBox ID="Txb_KeyWord3" runat="server" width="80px" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                   
                   
                   
                   <tr>
                        <td width="100px" >
                            网址：
                        </td>
                        <td colspan="3" class="style3">
                            <asp:TextBox ID="Txb_WebSite" runat="server" Width="500px"></asp:TextBox>
                       
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="100px" >
                            Blog：
                        </td>
                        <td colspan="3" class="style3">
                            <asp:TextBox ID="Txb_Blog" runat="server" Width="500px"></asp:TextBox>
                       
                        </td>
                        <td>
                        </td>
                    </tr>
                    
                    <tr>
                        <td width="100px">
                            WeiBo：
                        </td>
                        <td colspan="3" class="style3">
                            <asp:TextBox ID="Txb_Weibo" runat="server" Width="500px"></asp:TextBox>
                       
                        </td>
                        <td>
                        </td>
                    </tr>
                    
                     <tr>
                        <td width="100px" >
                            地址：
                        </td>
                        <td colspan="3" class="style3">
                            <asp:TextBox ID="Txb_Address" runat="server" Width="500px" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                        <td></td>
                        
                    </tr>
                    
                    <tr>
                        <td width="100px">
                            备注：
                        </td>
                        <td colspan="3" class="style3">
                            <asp:TextBox ID="Txb_Demo" runat="server" TextMode="MultiLine" Width="500px"></asp:TextBox>
                       
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
                <div id="div_PersionInfo" runat="server" visible="false">
                    <table width="800px" >
                        <tr>
                        <td width="100px" >
                            身份证：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_PID" runat="server" Width="500px"></asp:TextBox>
                        </td>
                        <td></td>
                        
                    </tr>
                    </table>
                </div>
                
                   <div id="div_ShopInfo" runat="server"  visible="false">
                    <table width="800px" >
                       <tr>
                        
                        <td  width="100px" >
                            商铺负责人：
                        </td>
                        <td class="style3">
                            <asp:TextBox ID="Txb_ShopBoss" runat="server"></asp:TextBox>
                        </td>
                        <td class="style3">
                            &nbsp;</td>
                        <td></td>
                    </tr>
                    </table>
                </div>
                
                <table width="800px" height="30px">
                    <tr>
                        <td>
                        </td>
                    </tr>
                    <tr align="center">
                        <td class="style1">
                            <asp:Button ID="Btn_Finish" runat="server" Text="完 &nbsp; &nbsp;成" 
                                onclick="Btn_Finish_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        </form>
</body>
</html>
